package com.hx;

import com.hx.rpc.RpcProxyClinet;
import com.hx.service.IHelloService;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        RpcProxyClinet rpcProxyClinet = new RpcProxyClinet();
        IHelloService iHelloService = rpcProxyClinet
                .clientProxy(IHelloService.class, "localhost", 8888);
        String result = iHelloService.sayHello("Hello Huathy..");
        System.out.println(result);
    }
}
